package dreamCookGame.chickenMiniGame;

public class Coop {
	int _x1;
	int _y1;
	int _x2;
	int _y2;
	public Vector _center;
	public Coop(int x1, int y1, int width, int height){
		_x1 = x1;
		_y1 = y1;
		_x2 = x1+width;
		_y2 = y1+height;
		_center = new Vector(x1+(width/2),y1+(height/2));
	}
	public boolean checkInside(int x, int y){
		boolean returnValue;
		if(x>_x1&&x<_x2){
			if(y>_y1&&y<_y2){
				returnValue = true;
			}else{
				returnValue = false;
			}
		}else{
			returnValue = false;
		}
		return returnValue;
	}
}
